﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OrchardSystemServer.Config
{
    public class DbConfig
    {
        public string Server { get; set; }
        public string Database { get; set; }
        public string Uid { get; set; }
        public string Password { get; set; }
        public static DbConfig Config = null;

        public DbConfig(string server, string db, string user, string password)
        {
            this.Server = server;
            this.Database = db;
            this.Uid = user;
            this.Password = password;
            Config = this;
        }
        public String GetDbConnectString()
        {
            return "Server=" + Server + ";" + "Database=" +
            Database + ";" + "Uid=" + Uid + ";" + "Password=" + Password + ";"; ;
        }
    }
}
